home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.3
/
Video Toaster v4.3.iso
/
4.2
/
arexx
/
switcher
/
genlockcmd.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-04-16
|
2KB
|
117 lines
/* Demonstrate Toaster Genlock Utility qua ARexx command host */
options RESULTS /* Ask ARexx to pass command results along to us */
/* Build a handy-dandy array of commands to loop through automagically */
cmd.1='M001' /* Set Program (Main) output */
cmd.2='M002'
cmd.4='M003'
cmd.3='M004'
cmd.5='MDV1'
cmd.6='MDV2'
cmd.7='MGEN' /* Key Amiga graphics on Program out */
cmd.8='MRGB' /* Place NTSC encoded Amiga graphics on Program out */
cmd.9='TAKE' /* Do a 'Take' to switch Program and Preview */
cmd.10='AUTO' /* Smooth dissolve between program and preview */
cmd.11='P001' /* Set Preview output */
cmd.12='P002'
cmd.14='P003'
cmd.13='P004'
cmd.15='PDV1'
cmd.16='PDV2'
cmd.17='PGEN' /* Key Amiga graphics on Preview out */
cmd.18='PRGB' /* Place NTSC encoded Amiga graphics on Preview out */
cmd.19='SLOW' /* Set AUTO transition speed */
cmd.20='MEDM'
cmd.21='FAST'
cmd.22='TBAR' /* Move TBAR up or down by amount specified i.e TBAR '-50' */
cmd.23='RBUP' /* Release Right Mouse button after TBAR moves to refresh Preview */
cmd.24='QUIT' /* Exit Genlock Utility */
address GENLOCK_REXX_PORT /* Send commands to the port named "GENLOCK_REXX_PORT" */
do i=1 to 23
interpret cmd.i /* Interpret! This is the coolest thing about ARexx! */
say "command: "cmd.i" Return Code: "RC" Result: "RESULT
end
MDV1
PDV2
do i=0 to 255
say tbar i
tbar 1 /* Step TBar down 1 */
end
say "Hit return"
Pull arg1
do i=0 to 255
say tbar 500-i
tbar '-1' /* Step T-Bar up 1, use quotes so ARexx doesn't think we're subtracting */
end
say "Hit return"
Pull arg1
RBUP
exit
MDV1
PDV2
PGEN
say "Hit return"
Pull arg1
SLOW
AUTO
say "Hit return"
Pull arg1
MEDM
AUTO
say "Hit return"
Pull arg1
FAST
AUTO
say "Hit return"
Pull arg1
/* TBAR movement is relative, not absolute */
TBAR 50
say "Hit return"
Pull arg1
TBAR 50
say "Hit return"
Pull arg1
TBAR 160
say "Hit return"
Pull arg1
RBUP
say "Hit return"
Pull arg1
TBAR 50
say "Hit return"
Pull arg1
TBAR 50
say "Hit return"
Pull arg1
TBAR 160
/* until you say RBUP, it's like holding the RMB down and dragging */
say "Hit return"
Pull arg1
RBUP
say "Hit return"
Pull arg1
/* Uncomment the 'QUIT' line to quit the genlock utility, but remember:
It's not polite to quit a program you didn't start! */
/* QUIT */
say Result
say 'Exiting'